xen/arm: arm64: Add helpers to decode and encode branch instructions
authorJulien Grall <julien.grall@arm.com>
Wed, 22 Jun 2016 11:15:23 +0000 (12:15 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 13 Jul 2016 17:30:47 +0000 (18:30 +0100)
commit6dbf3f0e3074c76b1083eec3739be1a8761ad3dc
tree6592317ee82884dae14702bb15d0412d34319bff
parentc36eba84a11f7cc4b40cd181d2f1215b105fc72b
xen/arm: arm64: Add helpers to decode and encode branch instructions

We may need to update branch instruction when patching Xen.

The code has been imported from the files arch/arm64/kernel/insn.c
and arch/arm64/include/asm/insn.h in Linux v4.6.

Note that only the necessary helpers have been imported.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/arm64/Makefile
xen/arch/arm/arm64/insn.c [new file with mode: 0644]
xen/include/asm-arm/arm64/insn.h [new file with mode: 0644]
xen/include/asm-arm/insn.h [new file with mode: 0644]